package com.dau.common.other;

import lombok.Getter;

/**
 * 返回代码
 *
 * @author tzj
 * @date 2024/11/08
 */
@Getter
public enum ApiCode {
    OK(200, "SUCCESS"),
    JURISDICTION(401, "NO_PERMISSION"),
    PARAM_ERROR(405, "PARAMETER_ERROR"),
    ERROR(500, "SERVICE_ERROR");

    private final int code;

    private final String message;

    ApiCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
